package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SLookupPlayerReply extends Object implements IMessageBase
    {
        public var miniPlayer:SPublicMiniPlayer;
        public var playerItemUpdates:Array;
        public var fightAttributeBase:SFightAttribute;
        public var fightAttributeFinal:SFightAttribute;
        public var acupointInfo:SAcupointInfo;
        public var life:int;
        public var mana:int;
        public var experience:Number;
        public var mount:int;
        public var beAdored:int;
        public var beDespised:int;
        public var honour:int;
        public var guildName:String;
        public const _type:int = 12029;
        public static var _regist:SLookupPlayerReply = new SLookupPlayerReply(true);

        public function SLookupPlayerReply(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SLookupPlayerReply();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.miniPlayer.__write(param1);
            SeqPlayerItemUpdateHelper.write(param1, this.playerItemUpdates);
            this.fightAttributeBase.__write(param1);
            this.fightAttributeFinal.__write(param1);
            this.acupointInfo.__write(param1);
            param1.writeInt(this.life);
            param1.writeInt(this.mana);
            param1.writeLong(this.experience);
            param1.writeInt(this.mount);
            param1.writeInt(this.beAdored);
            param1.writeInt(this.beDespised);
            param1.writeInt(this.honour);
            param1.writeString(this.guildName);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(param1);
            this.playerItemUpdates = SeqPlayerItemUpdateHelper.read(param1);
            this.fightAttributeBase = new SFightAttribute();
            this.fightAttributeBase.__read(param1);
            this.fightAttributeFinal = new SFightAttribute();
            this.fightAttributeFinal.__read(param1);
            this.acupointInfo = new SAcupointInfo();
            this.acupointInfo.__read(param1);
            this.life = param1.readInt();
            this.mana = param1.readInt();
            this.experience = param1.readLong();
            this.mount = param1.readInt();
            this.beAdored = param1.readInt();
            this.beDespised = param1.readInt();
            this.honour = param1.readInt();
            this.guildName = param1.readString();
            
        }

    }
}
